/*
 * @Author: your name
 * @Date: 2021-11-12 15:18:07
 * @LastEditTime: 2021-11-12 19:15:02
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \li-yuwei\admin\src\utils\routes.js
 */
const routeList = [{
        path: "/compiler",
        name: "Compiler",
        component: () =>
            import ("../views/compiler/index.vue"),
        meta: {
            author: ["管理员", "访客"],
        },
    },
    {
        path: "/article",
        name: "Article",
        component: () =>
            import ("../views/article/index.vue"),
        meta: {
            author: ["管理员", "访客"],
        },
    },
    {
        path: "/createPage",
        name: "CreatePage",
        component: () =>
            import ("../views/createPage/index.vue"),
        meta: {
            author: ["管理员", "访客"],
        },
    },
    {
        path: "/home",
        name: "Home",
        component: () =>
            import ("../views/home/index.vue"),
        meta: {
            author: ["管理员", "访客"],
        },
        children: [{
                path: "/home",
                redirect: "/workbench",
                meta: {
                    author: ["管理员", "访客"],
                },
            },
            {
                path: "/workbench",
                name: "Workbench", //工作台
                text: "工作台",
                icon: "icon-gongzuotai",
                component: () =>
                    import ("../views/home/workbench/index.vue"),
                meta: {
                    author: ["管理员", "访客"],
                },
            },
            {
                path: "/articleAdmin",
                name: "ArticleAdmin", //文章管理
                text: "文章管理",
                icon: "icon-wenzhangguanlidebianji",
                component: () =>
                    import ("../views/home/articleAdmin/index.vue"),
                meta: {
                    author: ["管理员", "访客"],
                },
                children: [{
                        path: "/articleAdmin",
                        redirect: "/articleAdmin/allAdmin",
                        meta: {
                            author: ["管理员", "访客"],
                        },
                    },
                    {
                        path: "/articleAdmin/allAdmin",
                        name: "AllAdmin",
                        text: "所有文章",
                        component: () =>
                            import ("../views/home/articleAdmin/allAdmin/index.vue"),
                        meta: {
                            author: ["管理员", "访客"],
                        },
                    },
                    {
                        path: "/articleAdmin/classifyAdmin",
                        name: "ClassifyAdmin",
                        text: "分类管理",
                        component: () =>
                            import ("../views/home/articleAdmin/classifyAdmin/index.vue"),
                        meta: {
                            author: ["管理员", "访客"],
                        },
                    },
                    {
                        path: "/articleAdmin/tagAdmin",
                        name: "TagAdmin",
                        text: "标签管理",
                        component: () =>
                            import ("../views/home/articleAdmin/tagAdmin/index.vue"),
                        meta: {
                            author: ["管理员", "访客"],
                        },
                    },
                ],
            },
            {
                path: "/pageAdmin",
                name: "PageAdmin", //页面管理
                icon: "icon-yemianguanli",
                text: "页面管理",
                component: () =>
                    import ("../views/home/pageAdmin/index.vue"),
                meta: {
                    author: ["管理员"],
                },
            },
            {
                path: "/knowledgeQuiz",
                name: "KnowledgeQuiz", //知识小册
                text: "知识小册",
                icon: "icon-iconcelaqingbao",
                component: () =>
                    import ("../views/home/knowledgeQuiz/index.vue"),
                meta: {
                    author: ["管理员", "访客"],
                },
            },
            {
                path: "/poster",
                name: "Poster", //海报管理
                text: "海报管理",
                icon: "icon-shoucang1",
                component: () =>
                    import ("../views/home/poster/index.vue"),
                meta: {
                    author: ["管理员"],
                },
            },
            {
                path: "/commentAdmin",
                name: "CommentAdmin", //评论管理
                text: "评论管理",
                icon: "icon-pinglun1",
                component: () =>
                    import ("../views/home/commentAdmin/index.vue"),
                meta: {
                    author: ["管理员"],
                },
            },
            {
                path: "/emailAdmin",
                name: "EmailAdmin", //邮箱管理
                text: "邮箱管理",
                icon: "icon-youjian",
                component: () =>
                    import ("../views/home/emailAdmin/index.vue"),
                meta: {
                    author: ["管理员"],
                },
            },
            {
                path: "/fileAdmin",
                name: "FileAdmin", //文件管理
                text: "文件管理",
                icon: "icon-wenjianjia",
                component: () =>
                    import ("../views/home/fileAdmin/index.vue"),
                meta: {
                    author: ["管理员"],
                },
            },
            {
                path: "/searchRecodes",
                name: "SearchRecodes", //搜索记录
                text: "搜索记录",
                icon: "icon-sousuo",
                component: () =>
                    import ("../views/home/searchRecodes/index.vue"),
                meta: {
                    author: ["管理员", "访客"],
                },
            },
            {
                path: "/visitStatistics",
                name: "VisitStatistics", //访问统计
                text: "访问统计",
                icon: "icon-tongji",
                component: () =>
                    import ("../views/home/visitStatistics/index.vue"),
                meta: {
                    author: ["管理员", "访客"],
                },
            },
            {
                path: "/usersAdmin",
                name: "UsersAdmin", //用户管理
                text: "用户管理",
                icon: "icon-yonghu",
                component: () =>
                    import ("../views/home/usersAdmin/index.vue"),
                meta: {
                    author: ["管理员", "访客"],
                },
            },
            {
                path: "/systemSettings",
                name: "SystemSettings", //系统设置
                text: "系统设置",
                icon: "icon-shezhi",
                component: () =>
                    import ("../views/home/systemSettings/index.vue"),
                meta: {
                    author: ["管理员", "访客"],
                },
            },
            {
                path: "/personalCenter",
                name: "PersonalCenter", //个人中心
                component: () =>
                    import ("../views/home/personalCenter/index.vue"),
                meta: {
                    author: ["管理员", "访客"],
                },
            },
        ],
    },
];
export default routeList;